import { ISessionHandler, KoaCtx } from "../../interface/IFace";
import { RedisCache } from "../Cache/Redis";
import { Session } from "../Session";

export class RedisSession extends Session implements ISessionHandler{  
    public set(key:string,value:any){
        return this._handle.set(key,value)
    }
    public get(key:string){
        return this._handle.get(this.key(key))
    }
    public create(id:string){
        this._key = id;
    }
    public destroy(){
        return this.destroy();
    }
}